Map.prototype.every = function (cb) {
  for (const iterator of this.entries()) {
    let [key, value] = iterator;
    let result = cb(key, value);
    if (!result) {
      return result;
    }
  }
  return true;
};

/** 数组转Map
 *
 * @param {*} arr
 * @returns
 */
const arrChangeMap = (arr) =>
  new Map(arr.map((value, index) => [value, false]));
